package com.bwie.bargain.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.bargain.dao.CommodityOrderDao;
import com.bwie.bargain.entity.CommodityOrderEntity;
import com.bwie.bargain.service.CommodityOrderService;


@Service("commodityOrderService")
public class CommodityOrderServiceImpl extends ServiceImpl<CommodityOrderDao, CommodityOrderEntity> implements CommodityOrderService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CommodityOrderEntity> page = this.page(
                new Query<CommodityOrderEntity>().getPage(params),
                new QueryWrapper<CommodityOrderEntity>()
        );

        return new PageUtils(page);
    }

}